package com.example.gulimallcoupon.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 优惠券与产品关联
 * 
 * @author zzl
 * @email zzl@gmail.com
 * @date 2025-10-27 08:42:24
 */
//@Data
@TableName("sms_coupon_spu_relation")
public class CouponSpuRelationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 优惠券id
	 */
	private Long couponId;
	/**
	 * spu_id
	 */
	private Long spuId;
	/**
	 * spu_name
	 */
	private String spuName;

	public CouponSpuRelationEntity() {
	}

	public CouponSpuRelationEntity(Long id, Long couponId, Long spuId, String spuName) {
		this.id = id;
		this.couponId = couponId;
		this.spuId = spuId;
		this.spuName = spuName;
	}

	/**
	 * 获取
	 * @return id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置
	 * @param id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取
	 * @return couponId
	 */
	public Long getCouponId() {
		return couponId;
	}

	/**
	 * 设置
	 * @param couponId
	 */
	public void setCouponId(Long couponId) {
		this.couponId = couponId;
	}

	/**
	 * 获取
	 * @return spuId
	 */
	public Long getSpuId() {
		return spuId;
	}

	/**
	 * 设置
	 * @param spuId
	 */
	public void setSpuId(Long spuId) {
		this.spuId = spuId;
	}

	/**
	 * 获取
	 * @return spuName
	 */
	public String getSpuName() {
		return spuName;
	}

	/**
	 * 设置
	 * @param spuName
	 */
	public void setSpuName(String spuName) {
		this.spuName = spuName;
	}

	public String toString() {
		return "CouponSpuRelationEntity{id = " + id + ", couponId = " + couponId + ", spuId = " + spuId + ", spuName = " + spuName + "}";
	}
}
